package com.moogene.saad.gameplay;

import java.util.ArrayList;

import com.moogene.saad.gameplay.data.IDataHandler;
import com.moogene.saad.gameplay.hero.Hero;

public class UserState implements IDataHandler {
	private static UserState sUserState;
	int money;
	ArrayList<String> battleFieldNames;

	private UserState(int money, ArrayList<String> battleFieldNames) {
		this.money = money;
		this.battleFieldNames = battleFieldNames;
	}

	private static UserState load() {
		int money = 100;
		ArrayList<String> battleFields = new ArrayList<String>();
		battleFields.add("level1");
		UserState us = new UserState(money, battleFields);
		return us;
	}

	public static UserState getInstance() {
		if (sUserState == null) {
			sUserState = load();
		}
		return sUserState;
	}

	public int getMoney() {
		return money;
	}

	public void setMoney(int money) {
		this.money = money;
	}

	public ArrayList<String> getBattleFieldNames() {
		return battleFieldNames;
	}

	public void setBattleFieldNames(ArrayList<String> battleFieldNames) {
		this.battleFieldNames = battleFieldNames;
	}
	
	@Override
	public void checkVersion() {
		// TODO Auto-generated method stub

	}

	@Override
	public void download() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void save() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void upload() {
		// TODO Auto-generated method stub
		
	}
}
